﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project2004.Jigsaw.Helpers
{
   public static  class RandomHelper
    {
        public static T GetRandom<T>(params T[] arr)
        {
            var len = arr.Length;
            var value = Random.Shared.Next() % len;
            return arr[value];
        }


    }
}
